<!--教案库 详细内容弹窗-->
<template>
  <div>
    <el-dialog title="详细内容" v-model="dialogVisible" width="70%" :close-on-click-modal="false" center>
      <div class="dialog-content">
        <p>{{ descriptionList.title }}</p>
        <div class="dialog-intro" v-if="descriptionList?.briefIntroduction">内容简介：{{ descriptionList.briefIntroduction }}</div>
        <div class="dialog-time dialog-intro">{{ descriptionList.lectureTime }}</div>
        <div class="dialog-description" v-html="descriptionList.caseContent"></div>
      </div>
    </el-dialog>
  </div>
</template>

<script setup>
const props = defineProps({
  // 展示信息
  descriptionList: {
    type: Object,
    default: {},
  },
});
const dialogVisible = ref(false); // 弹窗状态
/**
 * 展示弹窗
 * @param value 弹窗状态
 */
const show = (value) => {
  dialogVisible.value = value;
};
defineExpose({
  show,
});
</script>

<style scoped lang="less">
// 详细内容弹窗
.dialog-content {
  padding: 0 10% 5%;
  p {
    font-size: 16px;
    color: #333333;
    text-align: center;
    line-height: 24px;
    font-weight: 700;
  }
  .dialog-intro {
    font-size: 12px;
    color: #666666;
    text-align: center;
    line-height: 18px;
    font-weight: 400;
  }
  .dialog-time {
    margin-top: 5px;
    margin-bottom: 40px;
  }
  .dialog-description {
    text-indent: 2em;
    font-size: 14px;
    color: #333333;
    line-height: 20px;
    font-weight: 400;
  }
}
</style>
